import { createApp } from "vue";
import { createPinia } from "pinia";
import router from "../src/routers";
import App from "./App.vue";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 引入公共样式代码
import "./style.css";
import "element-plus/theme-chalk/el-message.css";
import "element-plus/theme-chalk/el-message-box.css";
// 创建app实例并挂在
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(createPinia());
app.use(router);
app.mount("#app");
